package com.weiyuwqj.admin.controller.admin.log.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 日志信息收集类
 * 用于收集日志信息并管理
 * @author Administrator
 */

public class GolbalCollectLog implements Serializable {
	private Integer id;
	private String module;		//模块
	private String description;	//描述名
	private Integer userId;		//当前用户ID
	private String ip;
	private String userName;	//当前用户名
	private String method;		//方法名
	private String args; 		// 传递参数
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createDate;//记录日志产生时间


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getArgs() {
		return args;
	}
	public void setArgs(String args) {
		this.args = args;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	
	public Date getCreateDate() {
		if (createDate == null)
		{
			return null;
		}
		return (Date)createDate.clone();
	}
	public void setCreateDate(Date createDate) {
		if (createDate == null)
		{
			this.createDate = null;
		} else {
			this.createDate = (Date)createDate.clone();
		}
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
}
